dropdown: Use the combox accessible role
authorMatthias Clasen <mclasen@redhat.com>
Tue, 13 Oct 2020 22:31:08 +0000 (18:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 13 Oct 2020 22:31:53 +0000 (18:31 -0400)
Its really just a combobox with another name.

gtk/gtkdropdown.c

index 8fad4bf1db40badcb400064a59e969a768187c74..8a6969e8564a3682060d29e276a4c4cbd044f2ca 100644 (file)
  *
  * GtkDropDown has a single CSS node with name dropdown,
  * with the button and popover nodes as children.
+ *
+ * # Accessibility
+ *
+ * GtkDropDown uses the #GTK_ACCESSIBLE_ROLE_COMBO_BOX role.
  */
 
 struct _GtkDropDown
@@ -526,6 +530,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
   gtk_widget_class_bind_template_callback (widget_class, search_stop);
 
   gtk_widget_class_set_css_name (widget_class, I_("dropdown"));
+  gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_COMBO_BOX);
 }
 
 static void